-- GENERATED SPELL FOR [Condemned Cleric] --


function spell0_7070(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_7070', 3500, 1)
end

function spell1_7070(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7070', 2500, 1)
end

function Sorts_7070(pUnit, Event)
local choix_sorts_7070 = math.random(0, 1)
if choix_sorts_7070 == 0 then
pUnit:RegisterEvent('spell0_7070', 1, 1)
end
if choix_sorts_7070 == 1 then
pUnit:RegisterEvent('spell1_7070', 1, 1)
end
end

function mob7070_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7070', math.random(1500, 3000), 1)
end

function mob7070_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7070_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7070_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7070, 1, 'mob7070_Action')
RegisterUnitEvent(7070, 2, 'mob7070_Leave')
RegisterUnitEvent(7070, 3, 'mob7070_Kill')
RegisterUnitEvent(7070, 4, 'mob7070_Die')
